package com.redisdemo;
import redis.clients.jedis.Jedis;
//mvn exec:java -Dexec.mainClass="com.redisdemo.RedisJava" -Dexec.cleanupDaemonThreads=false
public class RedisJava {
    public static void main(String[] args) {
        //Jedis jedis = new Jedis("localhost");
        Jedis jedis = JedisUtil.getPool().getResource();  
        System.out.println("Connection to server sucessfully");
        System.out.println("Server is running: " + jedis.ping());
        JedisUtil.getPool().returnResource(jedis);  
    }
}
